using System;
using System.Collections.Generic;
using System.Text;

namespace Horizon
{
    /// <summary>
    /// Wraps an option for searching (by title, by author, etc)
    /// </summary>
    [Serializable]
    public class SearchOption
    {
        string labelValue, keyValue;

        public SearchOption()
        {
        }

        /// <summary>
        /// Creates a search option for a given label and key
        /// </summary>
        /// <param name="label"></param>
        /// <param name="key"></param>
        public SearchOption(string label, string key)
        {
            this.labelValue = label;
            this.keyValue = key;
        }


        #region "Public Properties"

        /// <summary>
        /// Display label for this search option
        /// </summary>
        public string Label
        {
            get { return labelValue; }
            set { labelValue = value; }
        }

        /// <summary>
        /// Internal key to represent this search option
        /// </summary>
        public string Key
        {
            get { return keyValue; }
            set { keyValue = value; }
        }

        #endregion
    }
}
